package com.tonghe3.pojo;

/**
 * @Date:2022/1/11- 01- 11- 17:39
 **/
public class User {

    private String name;

    //有参构造
    public User(String name){
        this.name = name;
    }

//    public User(){
//        System.out.println("User 的无参构造");
//    }

    public void  show(){
        System.out.println("name = "+ name);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
